<?php

require 'lib/model/om/BaseBloc.php';

class Bloc extends BaseBloc
{
    public function isIncomplete()
    {
        foreach ($this->getScari() as $scari)
        {
            if ($scari->isIncomplete())
            {
                return true;
            }
        }

        return false;
    }

    public function getScari($criteria = null, PropelPDO $con = null)
    {
        if ($criteria === null)
        {
            $criteria = new UserCriteria('ScaraPeer');
        }

        return parent::getScaras($criteria, $con);
    }

}
